﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200090D RID: 2317
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class HeliobusUpgradeLevelScRsp : IMessage<HeliobusUpgradeLevelScRsp>, IMessage, IEquatable<HeliobusUpgradeLevelScRsp>, IDeepCloneable<HeliobusUpgradeLevelScRsp>, IBufferMessage
	{
		// Token: 0x17001D4A RID: 7498
		// (get) Token: 0x060067D5 RID: 26581 RVA: 0x0011668C File Offset: 0x0011488C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<HeliobusUpgradeLevelScRsp> Parser
		{
			get
			{
				return HeliobusUpgradeLevelScRsp._parser;
			}
		}

		// Token: 0x17001D4B RID: 7499
		// (get) Token: 0x060067D6 RID: 26582 RVA: 0x00116693 File Offset: 0x00114893
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return HeliobusUpgradeLevelScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001D4C RID: 7500
		// (get) Token: 0x060067D7 RID: 26583 RVA: 0x001166A5 File Offset: 0x001148A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return HeliobusUpgradeLevelScRsp.Descriptor;
			}
		}

		// Token: 0x060067D8 RID: 26584 RVA: 0x001166AC File Offset: 0x001148AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeliobusUpgradeLevelScRsp()
		{
		}

		// Token: 0x060067D9 RID: 26585 RVA: 0x001166B4 File Offset: 0x001148B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeliobusUpgradeLevelScRsp(HeliobusUpgradeLevelScRsp other) : this()
		{
			this.level_ = other.level_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060067DA RID: 26586 RVA: 0x001166E5 File Offset: 0x001148E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeliobusUpgradeLevelScRsp Clone()
		{
			return new HeliobusUpgradeLevelScRsp(this);
		}

		// Token: 0x17001D4D RID: 7501
		// (get) Token: 0x060067DB RID: 26587 RVA: 0x001166ED File Offset: 0x001148ED
		// (set) Token: 0x060067DC RID: 26588 RVA: 0x001166F5 File Offset: 0x001148F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17001D4E RID: 7502
		// (get) Token: 0x060067DD RID: 26589 RVA: 0x001166FE File Offset: 0x001148FE
		// (set) Token: 0x060067DE RID: 26590 RVA: 0x00116706 File Offset: 0x00114906
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060067DF RID: 26591 RVA: 0x0011670F File Offset: 0x0011490F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as HeliobusUpgradeLevelScRsp);
		}

		// Token: 0x060067E0 RID: 26592 RVA: 0x0011671D File Offset: 0x0011491D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(HeliobusUpgradeLevelScRsp other)
		{
			return other != null && (other == this || (this.Level == other.Level && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060067E1 RID: 26593 RVA: 0x0011675C File Offset: 0x0011495C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060067E2 RID: 26594 RVA: 0x001167B4 File Offset: 0x001149B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060067E3 RID: 26595 RVA: 0x001167BC File Offset: 0x001149BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060067E4 RID: 26596 RVA: 0x001167C8 File Offset: 0x001149C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Level);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060067E5 RID: 26597 RVA: 0x00116824 File Offset: 0x00114A24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060067E6 RID: 26598 RVA: 0x0011687C File Offset: 0x00114A7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(HeliobusUpgradeLevelScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060067E7 RID: 26599 RVA: 0x001168CC File Offset: 0x00114ACC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060067E8 RID: 26600 RVA: 0x001168D8 File Offset: 0x00114AD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.Level = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040027A1 RID: 10145
		private static readonly MessageParser<HeliobusUpgradeLevelScRsp> _parser = new MessageParser<HeliobusUpgradeLevelScRsp>(() => new HeliobusUpgradeLevelScRsp());

		// Token: 0x040027A2 RID: 10146
		private UnknownFieldSet _unknownFields;

		// Token: 0x040027A3 RID: 10147
		public const int LevelFieldNumber = 8;

		// Token: 0x040027A4 RID: 10148
		private uint level_;

		// Token: 0x040027A5 RID: 10149
		public const int RetcodeFieldNumber = 11;

		// Token: 0x040027A6 RID: 10150
		private uint retcode_;
	}
}
